//
// Created by nicemoe on 2021/9/5.
//

#include  <iostream>
#include <string>
#include "queuetp.h"

using namespace std;

int main() {

    QueueTp<string> cs(5);
    string temp;

    while (!cs.isFull()){
        cout <<"Please enter your name. You will be served in the order of arrival.\n";
        getline(cin,temp);
        cs.enQueue(temp);
    }
    cout <<"The queue is full. Processing begins!\n";

    while (!cs.isEmpty()){
        cs.deQueue(temp);
        cout <<"Now processing " << temp<<"...\n";
    }
    return 0;
}
